import { Component, OnInit } from '@angular/core';
import { HttpClient } from '@angular/common/http';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.scss']
})
export class AppComponent {
  title = 'newsSite';
  constructor(private http: HttpClient) {}
  // ngOnInit(): void {
  //   this.http
  //     .post('http://localhost:5000//api/querynews','')
  //     .subscribe(data => {
  //       var list:any = data;
  //       console.log(data);
  //     });
  // }
}
